package com.system.appointment.feign;

import com.system.appointment.bean.Depart;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @InterfaceName: DepartServiceFeign
 * @description: TODO 类描述
 * @author: Li Chuanwei
 * @date: 2023/12/10 17:18
 **/
@FeignClient(value = "depart-service", path = "/depart")
public interface DepartServiceFeign {
    @GetMapping("/getDepartName/{id}")
    String getDepartName(@PathVariable("id") int id);

    @GetMapping("/get/{id}")
    Depart getHandle(@PathVariable("id") int id);
}
